﻿
using System.Linq.Expressions;

namespace Fortunate.IService.BASE
{
    public interface IBaseServices<TEntity> where TEntity : class
    {
        #region 注释
        /*
        /// <summary>
        /// 保存（将内容添加至数据库）
        /// </summary>
        /// <param name="entity">实体对象</param>
        /// <returns>布尔类型</returns>
        Task<bool> SaveAsync(TEntity entity);

        /// <summary>
        /// 批量保存
        /// </summary>
        /// <param name="entitys">集合对象</param>
        /// <returns>布尔类型</returns>
        Task<bool> SaveAsync(IEnumerable<TEntity> entitys);

        /// <summary>
        /// 获取单个对象
        /// </summary>
        /// <param name="func"></param>
        /// <returns></returns>
        Task<TEntity> FindAsync(Expression<Func<TEntity, bool>> func);
        */
        #endregion
    }
}
